﻿//-----------------------------------------------------------------------
// <copyright file="DataPacketFlags.cs" company="FastNET Services">
//     Copyright (c) 2008-2009. All Rights Reserved.
// </copyright>
// <license>
//     GPLv2
// </license>
// <warranty>
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
//     BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
//     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
//     DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </warranty>
//-----------------------------------------------------------------------

namespace GateShift.Common.Networking.Enumerations
{
    /// <summary>
    /// Enumeration of all possible flags for data packet processing
    /// </summary>
    [System.Flags]
    internal enum DataPacketFlags : byte
    {
        /// <summary>
        /// Flag that specifies that the packet is internal to the networking system
        /// </summary>
        ConnectionRelated = 128,

        /// <summary>
        /// Specifies that the data portion of the packet is encrypted
        /// </summary>
        Encrypted = 64,

        /// <summary>
        /// Specifies that the data portion of the packet is compressed
        /// </summary>
        Compressed = 32,

        /// <summary>
        /// Specifies that no flags have been applied
        /// </summary>
        None = 0
    }
}